package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Member;
import com.itheima.pojo.Order;
import com.itheima.pojo.Setmeal;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;


public interface MemberService {
//   PageResult pageQuery(QueryPageBean queryPageBean) ;
    void addMember(Member member);
//    Member findById(Integer id);
//    void edit(Member member);
//    void delete(Integer id);
    List<Order> findOrderIdByMember(Integer id);
    Setmeal findSetmealDetail(Integer setmealId);

    Member findByTelephone(String telephone);

//    void add(Member member);

    Result findByAge();


 Member findMemberByIdCardAndPwd(String idCard, String password);

 List<Map> findSetmealById(int parseInt);

 String findPasswordById(String id);


 void editPassword(Map map);

 List<Map> findSetmealByIdAndDate(Map map) throws Exception;

 void edit2Telephone(Map map);






 //刘浩然
// Member findByTelephone(String telephone);

 void add(Member member);

 PageResult findPage(QueryPageBean queryPageBean);

 List<User> findUser();

 Member findById(Integer id);

 void delete(Integer id);

 void edit(Map map);

 int findCountByMemberId(int id);

 List<Map<String,Object>> findmemberInfo(int id);

 List<Integer> findMemberCountByMonths(List<String> months);

 List<Map> getAgeStatistics();

 Map getMemberReport() throws Exception;


    void edit01(Member member);

    void forgetPassword(String id, String password);
}
